/**
 * @description :{配置代理}
 */
if (process.env.REACT_APP_DEBUG_MODE) {
    const { createProxyMiddleware } = require('http-proxy-middleware');

    module.exports = function (app) {
        app.use('/allproductkml', createProxyMiddleware({
            target: 'https://www.allproductkml.online',
            changeOrigin: true,
            pathRewrite: {
                '^/allproductkml': '',
            }
        }));

        app.use('/allproductugx', createProxyMiddleware({
            target: 'https://www.allproductugx.online',
            changeOrigin: true,
            pathRewrite: {
                '^/allproductugx': '',
            }
        }))
    }
}